Skip to content

Conversation

duncanmcclean
Copy link
Member

@duncanmcclean duncanmcclean commented Jan 14, 2025

This pull request fixes an issue where default values weren't working after saving entries & terms.

When entries and terms are saved, empty values are filtered out before they get saved to the Markdown file (see Entry::fileData()). However, that doesn't affect the data on the current Entry/Term instance, the empty values remain.

This PR addresses that by filtering out empty values when extracting publish form values for the response.

It also updates the publish form's meta, to address an issue where fieldtype meta would be out-of-date (in the case of the Grid fieldtype, the default values are for the old row IDs, not the new ones).

Fixes #11355.
Fixes #11396.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modifying Entry taxonomy data using an event listener causes an error in RelationshipFieldtype Default values not working after saving
1 participant